package com.qckj.amz.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qckj.common.annotation.Excel;
import com.qckj.common.core.domain.BaseEntity;
import lombok.Data;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

/**
 * 产品校验对象 t_product_check
 *
 * @author luchuan
 * @since 1.0 2023-03-24
 */
@Entity
@Table(name = "t_product_check")
@Data
public class ProductCheck extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 产品代码
     */
    @Excel(name = "产品代码")
    @Column(name = "product_code")
    private String productCode;

    /**
     * 校验类型：1认领校验、2上传校验
     */
    @Excel(name = "校验类型：1认领校验、2上传校验")
    @Column(name = "check_type")
    private String checkType;

    /**
     * 校验项：1变体信息、2产品主图、3产品附图、4产品描述
     */
    @Excel(name = "校验项:1变体信息、2产品主图、3产品附图、4产品描述")
    @Column(name = "check_type_item")
    private String checkTypeItem;

    /**
     * 校验状态：0成功、1失败
     */
    @Excel(name = "校验状态：0成功、1失败")
    @Column(name = "check_status")
    private String checkStatus;

    /**
     * 校验说明
     */
    @Excel(name = "校验说明")
    @Column(name = "check_desc")
    private String checkDesc;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    @Column(name = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @Column(name = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @Column(name = "remark")
    private String remark;


}
